<?
/**
 * Сервер: s2.zalivalka.ru
 * Имя пользователя: u102697
 * Пароль: e91123
 */

if (!empty($_COOKIE['FROSTSTORE'])) {
    $_SESSION['UID'] = 0;
}

session_name('FROSTSESSID');
session_start();

define("ROOT_DIR", $_SERVER["DOCUMENT_ROOT"]);
define("MODULES_DIR", $_SERVER["DOCUMENT_ROOT"] . "/frostcore/modules");
define("COMPONENTS_DIR", $_SERVER["DOCUMENT_ROOT"] . "/frostcore/components");
define("TEMPLATES_DIR", $_SERVER["DOCUMENT_ROOT"] . "/frostcore/templates");
define("UPLOAD_DIR", $_SERVER["DOCUMENT_ROOT"] . "/frostcore/upload");

define("DEBUG_MODE", true);
define("DEBUG_SQL_MODE", true);

define("Y", "1");
define("N", "NULL()");

define("DIR_MODE", 0755);
define("FILE_MODE", 0644);

include_once MODULES_DIR . "/system/main/includes/Tools.inc.php";
include_once MODULES_DIR . "/system/main/main.module.php";
$GLOBALS['MESS'] = array();
$MAIN = new Main();
Module::Init('system', 'user');

$USER = new User();
global $MAIN, $USER;
